//
//  RSEnumPickerViewController.h
//  StaffTax
//
//  Created by 侯伟 on 2020/1/3.
//  Copyright © 2020 侯伟. All rights reserved.
//

#import "ActionSheetViewController.h"
#import "EnumObj.h"
NS_ASSUME_NONNULL_BEGIN

typedef void(^EnumPickerBlock)(EnumObj* object,NSUInteger index);

@interface RSEnumPickerViewController : ActionSheetViewController

@property (strong, nonatomic,readonly) UIPickerView *pickerView;

/**
 标题文本
*/
@property (nonatomic,copy)NSString* titleStr;

/**
 数据源 单列时候键值对 @[RSEnumObj] 多列时候是键值对数组
 */
@property(nonatomic,strong) NSArray<EnumObj*> *dataArray;

/**
 当前选中的值
 */
@property(nonatomic,assign) NSUInteger value;

/**
 选择回调
 */
@property(nonatomic,copy) EnumPickerBlock selectedBlock;



@end

NS_ASSUME_NONNULL_END
